package top.sdwu_top.kbase.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.baomidou.mybatisplus.extension.service.IService;
import top.sdwu_top.kbase.dto.KbaseKnowledgeTagDto;
import top.sdwu_top.kbase.entity.KbaseAuthUser;
import top.sdwu_top.kbase.entity.KbaseKnowledgeTag;
import top.sdwu_top.kbase.vo.KbaseKnowledgeTagVo;

import java.util.List;

/**
 * <p>
 * 知识标签 服务类
 * </p>
 *
 * @author zhipeng.duan@nvr-china.com
 * @since 2020-02-20
 */
public interface IKbaseKnowledgeTagService extends IService<KbaseKnowledgeTag> {

    Page<KbaseKnowledgeTag> page(KbaseKnowledgeTagVo knowlageTagVo);

    //新增
    boolean save(KbaseKnowledgeTag knowlageTag);

    //更新
    boolean update(KbaseAuthUser user, KbaseKnowledgeTag knowlageTag);


    boolean delete(KbaseAuthUser user, String id);


    KbaseKnowledgeTagDto getChain(String id);


    List<KbaseKnowledgeTag> getTagTreeList(KbaseAuthUser user);

    List<KbaseKnowledgeTag> getListByFileId(String fileId);

    List<String> getIdListByKeyword(String keyword);

    List<String> getNameListByIdList(List<String> idList);

}
